package com.nlelpct.feign.controller;

import com.nlelpct.feign.feigns.TestFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :小马
 * @date : 2023-07-14
 */
@RestController
public class FeignController {

    @Autowired
    private TestFeignClient testFeignClient;

    @GetMapping("/feignTest")
    public String feignTest() {
        return "feign Message" + "\r\ntestApplication: " + testFeignClient.test();
    }

}
